import {
    Artical,
    ArticalEdit,
    Dashboard,
    Login,
    NotFound,
    Settings,
    Notifications,
    NoAuth
} from '../views'

import { SettingFilled, DashboardFilled, FileWordFilled } from '@ant-design/icons';


export const mainRoutes = [
    {
        pathname: '/login',
        component: Login
    },
    {
        pathname: '/404',
        component: NotFound
    }
]


export const adminRoutes = [
    {
        pathname: '/admin/dashboard',
        component: Dashboard,
        title: '仪表盘',
        isNav: true,
        icon: DashboardFilled,
        roles: ['001', '002', '003']
    },
    {
        pathname: '/admin/artical',
        component: Artical,
        exact: true,
        title: '文章管理',
        isNav: true,
        icon: FileWordFilled,
        roles: ['001', '002']

    },
    {
        pathname: '/admin/artical/edit/:id',
        component: ArticalEdit,
        roles: ['001', '002']
    },
   
    {
        pathname: '/admin/settings',
        component: Settings,
        title: '设置',
        isNav: true,
        icon: SettingFilled,
        roles: ['001']
    },
    {
        pathname: '/admin/notifications',
        component: Notifications,
        title: '消息中心',
        roles: ['001', '002', '003']
    },
    {
        pathname: '/admin/noauth',
        component: NoAuth,
        title: '没有权限',
        roles: ['001', '002', '003']
    }
]